package reflect;
/**
 * 测试反射使用
 * @author pc
 *
 */
public class Student {
	private String name = "学生";
	private int age = 16;
	public Student() {
		
	}
	public Student(String name, int age) {
		this.name = name;
		this.age = age;
	}
	
	public void sayHello() {
		System.out.println("学生:大家好，我是"+name+",我今年"+age+"岁");
	}
	
	public String toString() {
		return "学生["+name+","+age+"]";
	}
}






